package by.amakarevich.services;

import org.springframework.transaction.annotation.Transactional;

import by.amakarevich.datamodel.Needle;
import by.amakarevich.datamodel.Product;

public interface NeedleService {
	@Transactional
	void createNewNeedle(Needle needle, Product product);
	
	@Transactional
	Needle get(Long id);
	
	@Transactional
	void updateNeedle(Needle needle);
	
	@Transactional
	void removeNeedle(Long id);
	
	@Transactional
    void deleteAll();
}
